import Layout from '@/layout'
const groupRouter = {
  path: '/group/list',
  component: Layout,
  name: 'group-list',
  meta: {
    title: '集团',
    icon: 'group',
    permissions: ['group.query']
  },
  children: [
    {
      path: '/group/list',
      component: () => import('@/views/group/list'),
      name: 'group-list',
      meta: {title: '客户管理', icon: 'group'
        // ,permissions: ['group.query']
      },
    },

    // 注册路由
    {
      path: '/group/list',
      component: () => import('@/views/group/list'),
      name: 'group-list',
      meta: { title: '客户资料', icon: 'sub_group'},
      hidden: true
    },
    {
      path: '/group/add',
      component: () => import('@/views/group/add'),
      name: 'group-add',
      meta: { title: '新增客户', icon: 'customer'},
      hidden: true
    },
    {
      path: '/group/edit',
      component: () => import('@/views/group/edit'),
      name: 'group-edit',
      meta: { title: '修改客户', icon: 'sub_customer'},
      hidden: true
    },

    {
      path: '/group/detail',
      component: () => import('@/views/group/detail'),
      name: 'group-detail',
      meta: { title: '客户详情', icon: 'sub_customer'},
      hidden: true
    },
  ]
}
export default groupRouter
